<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
</head>
		<link />
		<script type="text/javascript" src="jquery.js" ></script>
		<script type="text/javascript" src="js/jquery.min.js" ></script>
		<!--[if lt IE 9]> 
	<script type="text/javascript" src="js/jquery-1.4.3.js" ></script>
<![endif]-->
		<!--<script type="text/javascript" src="js/p.js" ></script-->
		<script type="text/javascript" src="js/scroll.js"></script>
		<link rel="stylesheet" href="css/index_style.css" media="all"/>
		<link rel="stylesheet" type="text/css" href="css/webuploader.css">
<link rel="stylesheet" type="text/css" href="css/diyUpload.css">
<link rel="stylesheet" type="text/css" href="css/lottery.css">
	</head>
	<style>
*{ margin:0; padding:0;}
#box{ margin:50px auto; width:540px; min-height:400px; background:#FF9}
</style>
	<body>
		<div class="m">
			<div class="top">
				<div class="top1">
					<div class="logo"><img src="images/index_logo.png"></div>
				</div>
			</div>
		<div class="nav">
			<div class="nav_1">
				<ul>
					<a href="index.html"><li class="li_1">主页</li></a>
					<a href="info.html"><li class="li_2">江湖信息</li></a>
					<a href="trip.html"><li class="li_3">押镖行程</li></a>
					<a href="active.html"><li class="li_4">镖局信息</li></a>
					<a href="bag.html"><li class="li_5">个人包裹</li></a>
					<a href="help.html"><li class="li_6">江湖救急</li></a>
					<a href="shitu.html"><li class="li_7">师徒关系</li></a>
					<a href="../login/index.html"><li class="li_8">退出登录</li></a>
				</ul>
			</div>
		</div>
		<div class="nav1">
			<ul>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
				<li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
		              <li>恭喜账号为12321321321321的用户押镖成功，获益500&nbsp;<img src="images/yb.png"></li>
			</ul>
		</div>
		<div class="lottery">
			<div class="lottery1">
				<div class="lottery1a">
					<ul>
						<li>结果</li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/n_m.png"></li>
						<li><img src="images/y_m.png"></li>
						<li><img src="images/c_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
						<li><img src="images/h_m.png"></li>
					</ul>
				</div>
				<div class="lottery1b">
					<p>押单</p>
					<div class="lottery1bp">
						<ul class="lotteryul">
							
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>2000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>100<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/c_s.png"></li>
									<li>500<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/h_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>800<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/y_s.png"></li>
									<li>2000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/y_s.png"></li>
									<li>800<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>800<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>1000<img src="images/yb.png"></li>
								</ul>
							</li>
							<li>
								<ul>
									<li><img src="images/n_s.png"></li>
									<li>800<img src="images/yb.png"></li>
								</ul>
							</li>
							<!--<div style="clear: both;"></div>-->
						</ul>
					</div>
				</div>
			</div>
			<div class="lottery2">
				<div class="lottery2a">
					<span id="minute">05</span>:<span id="second">00</span>
				</div>
				<div class="lottery2aa">
				</div>
				<div class="lottery2b"><span id="secondp">30</span></div>
				<div class="lottery2c">
					<div class="lottery2ca">
						<img src="images/n_bb.png">
					</div>
				</div>
				<div class="lottery2d">
					<p>奖&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;池:&nbsp;&nbsp;<span>10000</span>&nbsp;<img src="images/yb.png"></p>
					<p>当前人数:&nbsp;&nbsp;<span>1000</span>&nbsp;人</p>

				</div>
			</div>
			<div class="lottery3">
				<p>个人钱包:<span>100000</span>&nbsp;<img src="images/yb.png"></p><br>
					<p>游戏收入:<span>100000</span>&nbsp;<img src="images/yb.png"></p>
			</div>
			<div class="lottery4">
				<div class="lottery4a lottery4aa">
					<img src="images/yn.png">
				</div>
				<div class="lottery4b lottery4aa">
					<img src="images/yc.png">
				</div>
				<div class="lottery4c lottery4aa">
					<img src="images/yh.png">
				</div>
				<div class="lottery4d lottery4aa">
					<img src="images/yy.png">
				</div>
			</div>
			<div class="lottery5">
				
					<span class="lottery5pa">&lt;</span><span class="lottery5pb">&gt;</span>
				<div class="lottery5a">
					<div class="lottery5a1">
						<div class="lottery5aa">
							<p>第1轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第2轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第3轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第4轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第5轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第6轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第7轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第8轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第9轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第10轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第11轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第12轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第13轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第14轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第15轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第16轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第17轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第18轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第19轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
						<div class="lottery5aa">
							<p>第20轮</p><br>
							<p></p><br>
							<p></p><br>
							<p></p>
						</div>
					</div>
				</div>
					<p><a href="#" onclick="p()">跳转</a>到第<input type="text">轮</p>
				
			</div>
		</div>
		
		</div>
		<!--增加代码 2016.9.20--><div class="pb2">
		<div class="mainbg"></div>
		<div class="lotterypb">
			<p><img src="images/yy.png"></p>
			<p>押当金额：<input type="text" value="100">&nbsp;<img src="images/yb.png"></p>
			<p>押当倍数：<a href="#" onclick="nep()">-</a><input type="text" class="lo" value="1"><a href="#" onclick="ne()">+</a>&nbsp;倍</p>
			<p><a href="#">确定</a><a href="#" onclick="$('.pb2').hide()">取消</a></p>
			
		</div>
		</div>
	</body>
</html>
<!--增加代码 2016.9.20-->
<script type="text/javascript" src="js/lottery.js"></script>
<script type="text/javascript">
var lun=1;
$(document).ready(function(){
  var mydate = new Date();
  var tim=mydate.toLocaleString();
  var timh=mydate.getHours();
  var timm=mydate.getMinutes();
//alert(timh);

if(timh-20==0){
	lun=Math.floor(timm/6+1);
}else if(timh-20==1){
	lun=Math.floor(timm/6+1)+10;
}
var timp=setInterval(function(){
	lun+=1;
//	window.location.reload();
},60000);
$(".lottery2aa").html("第"+lun+"轮")
});
</script>
<script type="text/javascript">
	$(document).ready(function(){
		$(".pop ul.popp li.bj_pop:nth-child(2) ul li:nth-child(2) .button:nth-child(1)").click(function(){
				$(".pb2").show();
      	 	var h=$(".pb2 .opp img:nth-child(1)").height();
		var w=$(".pb2 .opp img:nth-child(1)").width();
		var wh=$(window).width();
		var mop=$(".pb2 .opp img:nth-child(1)").css("marginTop");
		var hh=$(window).height();
			$(".pb2 .coloseimg").css({"margin-top":mop,"margin-left":(wh+w)*0.5-50});
		
		});
		$(".pb2 .opp,.pb2 .coloseimg").click(function(){
      	 	$(".pb2").hide();
		});
	});
</script>
<script type="text/javascript">
var tpp;
	$(document).ready(function(){
		var msg = ["n_bb.png","c_bb.png","h_bb.png","y_bb.png"];
		var pp=0;
		var kp;
		tpp=setInterval(function(){
			for(var b=0;b<b+1;b++){
				kp=Math.floor(Math.random() * msg.length);
				if(kp!=pp){
					$(".lottery2c .lottery2ca").html($("<img>").attr({ 
					'src':'images/'+msg[kp]
					
					}));
					break;
				}
			}
			pp=kp;
		},300);
		
	});
</script>
<script type="text/javascript">

var intDiff = parseInt(3);//倒计时总秒数量
var intDif = parseInt(30);
var day=0,
		hour=0,
		minute=0,
		second=0;//时间默认值	
var tt;
function timer(intDiff){
	
	tt=setInterval(function(){
	
		pppp();
	
	}, 1000);
	
} 

$(function(){
	timer(intDiff);
});
function pppp(){
	intDiff--;
	if(intDiff >= 0){
		minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
		second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
	}
	if (minute <= 9) minute = '0' + minute;
	if (second <= 9) second = '0' + second;
	$('#minute').html(minute);
	$('#second').html(second);
	if(minute=='00'&&second=='00'){
		clearInterval(tt);
		$(".lottery2b").show();
		timep(intDif);
		t=3;
	}
}
var secondp=0;//时间默认值	
var ttt;
function timep(intDif){
	
	ttt=setInterval(function(){
	
		intDif--;
		if(intDif >= 0){
			secondp = Math.floor(intDif) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
		}
		if (secondp <= 9) secondp = '0' + secondp;
//		if(intDif%2==0) $(".lottery2ca").animate({borderWidth:"+=3px"});
//		else if(intDif%2==1) $(".lottery2ca").animate({borderWidth:"-=3px"});
		
		$('#secondp').html(secondp);
		if(secondp=='00'){
			clearInterval(ttt);
			clearInterval(tpp);
			alert("恭喜你！你这轮中奖");
		}
	
	}, 1000);
	
} 

</script>
<script type="text/javascript">
	$(document).ready(function(){
		$(".lottery5a1").css({'margin-left':-199*(lun-1)});
		$(".lottery5pb").click(function(){
			var ml=parseInt($(".lottery5a1").css("margin-left"));
//			alert(ml);
			if(ml>-19*199){
				if(!$(".lottery5a1").is(":animated")){
					$(".lottery5a1").animate({'margin-left':'-=199px'});
				}
				
			}else{
				$(".lottery5a1").css({'margin-left':-19*199});
			}
		
		});
		$(".lottery5pa").click(function(){
			var ml=parseInt($(".lottery5a1").css("margin-left"));
			if(ml<0){
				if(!$(".lottery5a1").is(":animated")){
					$(".lottery5a1").animate({'margin-left':'+=199px'});
				}
			}
			else{
				$(".lottery5a1").css({'margin-left':0});
			}
		
		});
		 $('.lottery5 p input[type=text]').bind('keypress',function(event){
            if(event.keyCode == "13")    
            {
                p();
            }
        });
		
	});
	function p(){
			var p=$(".lottery5 p input[type=text]").val();
			if(p<=10&&p>0){
				$(".lottery5a1").animate({'margin-left':-199*(p-1)});
			}else{
				alert("错误！");
			}
	}
</script>
<script type="text/javascript">
	function im(imp,impp){
//		$(".pb2").show();
//			$(imp).attr("src",impp);
		}
</script>
<script type="text/javascript">
var t=0;
	$(document).ready(function(){
		var th;
		$(".lottery4aa").click(function(){
			if(t<2){
				th=$(this);
				
				var imgp=th.find("img").attr("src");
	//			alert(ml);
				$(".lotterypb p:nth-child(1) img").attr("src",imgp);
				$(".pb2").show();
			}else if(t==3){
				alert("现在不能押当")
			}else{
				alert("超过押当时间，现在不能押当。")
			}
		});
		$(".lotterypb p:nth-child(4) a:nth-child(1)").click(function(){
			if(t!=3){
				t+=1;
				var imgp=th.find("img").attr("src");
				var impp=imgp.replace(".png","p.png");
	//			alert(ml);
				$(th).find("img").attr("src",impp);
				$(".pb2").hide();
				if(t==1){
					pp();
				}else if(t==2){
					ppp();
				}
			}else{
				alert("超过押当时间，现在不能押当");
			}
		});
	});
	var p1;
	var pp1;
	var p2;
	var pp2;
	function pp(){
			p1=$(".lotterypb p:nth-child(2) input[type=text]").val();
			pp1=$(".lotterypb p:nth-child(3) input[type=text]").val();
			$(".lottery5aa:nth-child("+lun+") p:nth-of-type(2)").html('<img src="images/h_m.png">&nbsp;&nbsp;<span>'+p1+'×'+pp1+'</span>&nbsp;&nbsp;<img src="images/yb.png">');
			$(".lottery5aa:nth-child("+lun+") p:nth-of-type(4)").html('总额：'+p1*pp1+'&nbsp;&nbsp;<img src="images/yb.png">');
		}
	function ppp(){
			p2=$(".lotterypb p:nth-child(2) input[type=text]").val();
			pp2=$(".lotterypb p:nth-child(3) input[type=text]").val();
			var sum=p1*pp1+p2*pp2;
			$(".lottery5aa:nth-child("+lun+") p:nth-of-type(3)").html('<img src="images/h_m.png">&nbsp;&nbsp;<span>'+p2+'×'+pp2+'</span>&nbsp;&nbsp;<img src="images/yb.png">');
			$(".lottery5aa:nth-child("+lun+") p:nth-of-type(4)").html('总额：'+sum+'&nbsp;&nbsp;<img src="images/yb.png">');
		}
	function ne(){
			var ne=$(".lo").val();
			if(ne<10&&ne>0){
				ne++;
				$(".lo").attr("value",ne);
			}
	}
	function nep(){
			var ne=$(".lo").val();
			if(ne<=10&&ne>1){
				ne--;
				$(".lo").attr("value",ne);
			}
	}
</script>


